/* ==========================
BLOG HERO
========================== */

.blog-hero-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7rem, 12vw, 11rem);
  background:
    linear-gradient(rgba(4, 17, 37, 0.68), rgba(4, 17, 37, 0.75)),
    url("../assets/blog_img.jpg");

  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.blog-hero-content {
  max-width: 850px;
  text-align: center;
  margin-inline: auto;
  color: #ffffff;
}

.blog-hero-content span {
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff6224;
}

.blog-hero-content h1 {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.blog-hero-content p {
  max-width: 720px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.breadcrumb {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  align-items: center;
}

.breadcrumb a {
  color: #ffffff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb p {
  color: #ff6224;
  margin: 0;
}

/* ==========================
BLOG GRID
========================== */

.blog-list-section {
  background: #f4f7ff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}

.blog-card {
  background: #ffffff;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 95, 168, 0.08);

  transition: 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card a {
  display: block;
  color: inherit;
}

.blog-image-wrap {
  height: 260px;
  overflow: hidden;
}

.blog-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.08);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.85rem;
  color: #ff6224;
  font-weight: 600;
}

.blog-content h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.9rem;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.4;
}

.blog-content p {
  color: #667085;
  line-height: 1.7;
  margin-bottom: 1.3rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-readmore {
  color: #005fa8;
  font-weight: 700;
  transition: 0.3s ease;
}

.blog-card:hover .blog-readmore {
  color: #ff6224;
}

/* ==========================
RESPONSIVE
========================== */

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-hero-section {
    padding-block: 7rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-image-wrap {
    height: 220px;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }
}

/* ==========================
SINGLE BLOG PAGE
========================== */

.single-blog-section {
  background: #ffffff;
  padding-top: clamp(7rem, 10vw, 9rem);
}

.single-blog {
  max-width: 980px;
  margin-inline: auto;
}

.single-blog-hero {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.single-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.single-blog-category {
  background: #fff0eb;
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.single-blog-date {
  color: #4f5f7a;
  font-size: 0.9rem;
}

.single-blog h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.08;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.single-blog-excerpt {
  max-width: 760px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: #4f5f7a;
  margin-bottom: 1.5rem;
}

.single-blog-author {
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
}

.single-blog-image {
  border-radius: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 24px 65px rgba(0, 95, 168, 0.12);
}

.single-blog-image img {
  width: 100%;
  height: clamp(280px, 45vw, 520px);
  object-fit: cover;
}

.single-blog-content {
  max-width: 780px;
  margin-inline: auto;
}

.single-blog-content p {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.9;
  color: #334155;
  margin-bottom: 1.3rem;
}

.single-blog-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: #111827;
  margin: 2.4rem 0 1rem;
}

.single-blog-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: #111827;
  margin: 2rem 0 0.8rem;
}

.single-blog-content ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.single-blog-content li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
  color: #334155;
}

.blog-not-found {
  text-align: center;
  padding-block: 5rem;
}

.blog-not-found h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.blog-back-link {
  display: inline-flex;
  margin-top: 1.5rem;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
}
